﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LogReader.aspx.cs" Inherits="site_log_LogReader" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>日志查看器</title>
    <link rel="Stylesheet" type="text/css" href="style/Default_aspx.css" />
    <script type="text/javascript" src="JS/prototype.js"></script>
    <script type="text/javascript" src="JS/Default_aspx.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="cssMain">

        
        <div class="cssCurrentPath">
           
            <span>当前目录：</span>
            <span><asp:Literal ID="litCurrentDir" runat="server"   /></span>

        </div>
        
        <div class="cssUpload">
        </div>

        <div class="cssFileListTitle">文件列表 <asp:Literal ID="litError3" runat="server" />

             <span> <a href="?path=<%=virtualParentPath%>">返回上一级</a></span>
        </div>
        <asp:HiddenField ID="hfDir" runat="server" />
        <asp:HiddenField ID="hfNewName" runat="server" />
        <asp:HiddenField ID="hfPath" runat="server" />
        
        <div class="cssFileList">
          <table>
            <tr class="cssTr1">
                <td class="cssTd1">文件名</td>
                <td class="cssTd2">大小</td>
                <td class="cssTd3">修改时间</td>
                <td class="cssTd4">类型</td>
                <td class="cssTd5">操作</td>
            </tr>
              
            <asp:Repeater ID="rptDir" runat="server">
                <ItemTemplate>
                <tr class="cssTr2">
                    <td class="cssTd1"><a href="?path=<%=startPath%><%#getDirName( Container.DataItem.ToString())%>"><%#getDirName( Container.DataItem.ToString())%></a></td>
                    <td class="cssTd2 cssAR"> </td>
                    <td class="cssTd3 cssAR"> </td>
                    <td class="cssTd4 cssAR">文件夹</td>
                    <td class="cssTd5 cssAC">
                     </td>
                </tr>            
                </ItemTemplate>
            </asp:Repeater>
            
            <asp:Repeater ID="rptFile" runat="server">
                <ItemTemplate>
                <tr class="cssTr2">
                    <td class="cssTd1"><a href="javascript:void(0);" onclick="toEdit('<%#Eval("Name")%>')";> <%#Eval("Name")%> </a></td>
                    <td class="cssTd2 cssAR"><%#Eval("Length")%> byte</td>
                    <td class="cssTd3 cssAR"><%#formatDate(Eval("LastWriteTime"))%></td>
                    <td class="cssTd4 cssAR"><%#Eval("Extension").ToString().ToUpper()%></td>
                    <td class="cssTd5 cssAC">
                    </td>
                </tr>            
                </ItemTemplate>
            </asp:Repeater>
          </table>
        </div>    
    </div>
    </form>
</body>
</html>
